package com.ruoyi.common.core.domain.heytalk.dto;

import com.ruoyi.common.annotation.heytalk.EnumValue;
import com.ruoyi.common.constant.heytalk.CommonConstants;
import com.ruoyi.common.constant.heytalk.utils.EnumUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 处理好友申请
 * @author zhusy
 * @since 2021/11/6
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("处理好友申请入参DTO")
public class HandleFriendDTO {

    @ApiModelProperty(value = "申请记录ID", name = "id", required = true)
    @NotBlank(message = "申请记录ID不能为空")
    private String id;

    /** 备注 */
    @ApiModelProperty(value = "备注", name = "nickRemark")
    @Size(max = 30, message = "备注长度限制30字符以内")
    private String nickRemark;

    /** 申请状态：pending(等待), refuse(拒绝), agree(同意), ignore(忽略) */
    @ApiModelProperty(value = "申请状态：pending(等待), refuse(拒绝), agree(同意), ignore(忽略)",name = "status", required = true)
    @NotBlank(message = "申请状态不能为空")
    @EnumValue(strValues = {"pending", "refuse", "agree", "ignore"})
    private String status;

    /** 看我（1不看 0看我） */
    @ApiModelProperty(value = "看我（1不看 0看我）", name = "lookMe", required = true)
    @NotNull(message = "是否看我不能为空")
    @EnumValue(intValues = {0, 1})
    private Integer lookMe;

    /** 看他（1不看 0看他） */
    @ApiModelProperty(value = "看他（1不看 0看他）", name = "lookHim", required = true)
    @NotNull(message = "是否看他不能为空")
    @EnumValue(intValues = {0, 1})
    private Integer lookHim;

}
